class SecurityFilters {
	def filters = {
		loginCheck(controller:'*', action:'*') {
			before = {
				if(!session.user && !actionName.equals('login') && 
						!actionName.equals('doLogin')) {
					redirect(controller:'login',action:'login')
					return false
				}
			}
		}
	}
}